import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:im_app/im/page/view/NinePictureView.dart';
import 'package:im_app/im/util/ImConstant.dart';

import '../../../../pojo/ImPojo.dart';

class GroupView extends StatelessWidget {

  final ImGroup group;

  const GroupView(this.group);

  @override
  Widget build(BuildContext context) {
    return Row(children: [
      NinePictureView(group),
      const SizedBox(width: 10,),
      Text(group.name!, style: const TextStyle(fontSize: ImConstant.IM_DEFAULT_SIZE),),
      Text("(${group.groupUserList!.length})", style: const TextStyle(color: Colors.grey, fontSize: ImConstant.IM_SMALL_SIZE),)
    ],);
  }
  
}